﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QuanLyThuoc.DAL;
namespace QuanLyThuoc.BUS
{
    class NhapThuocBUS
    {
        private static readonly NhapThuocDAL nhap=new NhapThuocDAL();
        public static DataTable SelectAll_ThuocNhap()
        {
            return nhap.SelectAll_ThuocNhap();
        }
         public static DataTable SelectID_NhapThuoc(string IDPN)
         {
             return nhap.SelectID_NhapThuoc(IDPN);
         }
        public static int InsertNhapThuoc(string IDPN, string ctp, string TenThuoc, int IDThuoc, string DVtMua, string Dvt, decimal HeSoQD, int SL_N, int GiaNhap, int ThanhTien, DateTime NgaySX, DateTime HanDate)
        {
            return nhap.InsertNhapThuoc( IDPN,  ctp,  TenThuoc, IDThuoc, DVtMua, Dvt, HeSoQD, SL_N,  GiaNhap,  ThanhTien,NgaySX, HanDate);
         }
        public static int UpdateNhapThuoc(string IDPN, string Stt, int IDThuoc, string TenThuoc, string DVtMua, string Dvt, decimal HeSoQD, string SLNhap, string SL_N, int GiaNhap, int ThanhTien, DateTime NgaySX, DateTime HanDate)
        {
            return nhap.UpdateNhapThuoc(IDPN,Stt,IDThuoc,TenThuoc,DVtMua,Dvt,HeSoQD,SLNhap,SL_N,GiaNhap,ThanhTien,NgaySX,HanDate);
        }
        public int DeleteNhapThuoc(string IDPN)
        {
            return nhap.DeleteNhapThuoc(IDPN);
        }
    }
}
